package com.tbit.uqbike.object.view;

import com.tbit.uqbike.object.pojo.Account;

import java.util.LinkedList;
import java.util.List;

/**
 * @author MyWin E-mail:335918956@qq.com
 * @version 1.0
 * @createTime 2020-01-03 14:04
 */
public class AccountRole extends Account {
    public List<AccountRole> children = new LinkedList<>();

    public AccountRole(Account acc) {
        this.accountId = acc.getAccountId();
        this.type = acc.getType();
        this.parentId = acc.getParentId();
        this.name = acc.getName();
        this.password = acc.getPassword();
        this.country = acc.getCountry();
        this.phone = acc.getPhone();
        this.email = acc.getEmail();
        this.joinTime = acc.getJoinTime();
        this.updateTime = acc.getUpdateTime();
        this.remark = acc.getRemark();
    }
}
